package org.mca.mcaweb.bean;

import java.io.Serializable;

import javax.enterprise.context.SessionScoped;
import javax.inject.Named;

import org.mca.mcaweb.entity.Empr;
import org.mca.mcaweb.entity.Usua;

@Named
@SessionScoped
public class LoggedUser implements Serializable {

	private static final long serialVersionUID = 5118100973384345681L;
	
	private Usua usua;
	
	private Empr empr;
	
	public boolean isLogged(){
		boolean b = (usua != null);
		return b;
	}

	public Usua getUsua() {
		return usua;
	}
	public void setUsua(Usua usua) {
		this.usua = usua;
	}

	public Empr getEmpr() {
		return empr;
	}

	public void setEmpr(Empr empr) {
		this.empr = empr;
	}
}
